
<div class="row">
     <div class="col-xs-12 col-xs-12">
          <div class="widget radius-bordered">
              <div class="widget-header bg-blue">
				<i class="widget-icon fa fa-arrow-down"></i>
				<span class="widget-caption">自定义微信模板</span>
				<div class="widget-buttons">
					<a href="#" data-toggle="maximize">
						<i class="fa fa-expand"></i>
					</a>
					<a href="#" data-toggle="collapse">
						<i class="fa fa-minus"></i>
					</a>
					<a href="#" data-toggle="dispose">
						<i class="fa fa-times"></i>
					</a>
				</div>
			</div>
              <div class="widget-body">
				
				<!--  -->
            	<div class="widget-main ">
                    <div class="tabbable">
                        <ul class="nav nav-tabs tabs-flat" id="myTab11">
                            <li class="active">
                                <a data-toggle="tab" href="#client">
                                	客户
                                </a>
                            </li>
                            <li>
                                <a data-toggle="tab" href="#business">
                                	商户
                                </a>
                            </li>
                            <li>
                                <a data-toggle="tab" href="#auntie">
                                	阿姨
                                </a>
                            </li>
                        </ul>
                        <div class="tab-content tabs-flat">
                            <div id="client" class="tab-pane active">
                                <!-- 客户 -->
                                
                                <div class="table-toolbar">
									<a href="{:U('Admin/Template/set/',array('wx_id'=>1))}" class="btn btn-primary"  data-loader="bb-loader" data-loadername="新建模板消息">
										<i class="fa fa-plus"></i>新增模板
									</a>
								</div>
								<table id="Joel-table" class="table table-bordered table-hover">
									<thead class="bordered-darkorange">
										<tr role="row">
											<th>ID</th>
											<th>模板名称</th>
											<th>调用名称</th>
											<th>模板id</th>							
											<th>模板详情URL</th>
											<th>颜色</th>
											<th>内容</th>
										</tr>
									</thead>
									<tbody>
										<volist name="template1" id="vo">
											<tr id="item{$vo.id}">
												<td class=" ">{$vo.id}</td>
												<td class=" ">{$vo.title}</td>
												<td class=" ">{$vo.name}</td>
												<td class=" ">{$vo.template_id}</td>								
												<td class=" ">{$vo.url}</td>
												<td class=" ">{$vo.topcolor}</td>
												<td class="center "><a href="{:U('Admin/Template/set',array('id'=>$vo['id'],'wx_id'=>1))}" class="btn btn-success btn-xs" data-loader="bb-loader" data-loadername="设置模板消息"><i class="fa fa-edit"></i> 编辑</a></td>
											</tr>
										</volist>
																
									</tbody>
								</table>
								<div class="row DTTTFooter">
									{$page}
								</div>
                                
                                <!-- 客户 -->
                            </div>

                            <div id="business" class="tab-pane">
                                <!-- 商户 -->
                                <div class="table-toolbar">
									<a href="{:U('Admin/Template/set/',array('wx_id'=>2))}" class="btn btn-primary"  data-loader="bb-loader" data-loadername="新建模板消息">
										<i class="fa fa-plus"></i>新增模板
									</a>
								</div>
								<table id="Joel-table" class="table table-bordered table-hover">
									<thead class="bordered-darkorange">
										<tr role="row">
											<th>ID</th>
											<th>模板名称</th>
											<th>调用名称</th>
											<th>模板id</th>							
											<th>模板详情URL</th>
											<th>颜色</th>
											<th>内容</th>
										</tr>
									</thead>
									<tbody>
										<volist name="template2" id="vo">
											<tr id="item{$vo.id}">
												<td class=" ">{$vo.id}</td>
												<td class=" ">{$vo.title}</td>
												<td class=" ">{$vo.name}</td>
												<td class=" ">{$vo.template_id}</td>								
												<td class=" ">{$vo.url}</td>
												<td class=" ">{$vo.topcolor}</td>
												<td class="center "><a href="{:U('Admin/Template/set',array('id'=>$vo['id'],'wx_id'=>2))}" class="btn btn-success btn-xs" data-loader="bb-loader" data-loadername="设置模板消息"><i class="fa fa-edit"></i> 编辑</a></td>
											</tr>
										</volist>
																
									</tbody>
								</table>
								<div class="row DTTTFooter">
									{$page}
								</div>
                            	<!-- 商户 -->
                            </div>
                            
                            <div id="auntie" class="tab-pane">
								<!-- 阿姨 -->
								<div class="table-toolbar">
									<a href="{:U('Admin/Template/set/',array('wx_id'=>3))}" class="btn btn-primary"  data-loader="bb-loader" data-loadername="新建模板消息">
										<i class="fa fa-plus"></i>新增模板
									</a>
								</div>
								<table id="Joel-table" class="table table-bordered table-hover">
									<thead class="bordered-darkorange">
										<tr role="row">
											<th>ID</th>
											<th>模板名称</th>
											<th>调用名称</th>
											<th>模板id</th>							
											<th>模板详情URL</th>
											<th>颜色</th>
											<th>内容</th>
										</tr>
									</thead>
									<tbody>
										<volist name="template3" id="vo">
											<tr id="item{$vo.id}">
												<td class=" ">{$vo.id}</td>
												<td class=" ">{$vo.title}</td>
												<td class=" ">{$vo.name}</td>
												<td class=" ">{$vo.template_id}</td>								
												<td class=" ">{$vo.url}</td>
												<td class=" ">{$vo.topcolor}</td>
												<td class="center "><a href="{:U('Admin/Template/set',array('id'=>$vo['id'],'wx_id'=>3))}" class="btn btn-success btn-xs" data-loader="bb-loader" data-loadername="设置模板消息"><i class="fa fa-edit"></i> 编辑</a></td>
											</tr>
										</volist>
																
									</tbody>
								</table>
								<div class="row DTTTFooter">
									{$page}
								</div>
								<!-- 阿姨 -->
                            </div>
						</div>
					</div>
               </div>
               
               <!-- -->
            </div>
        </div>
	</div>
     
</div>
<!--面包屑导航封装-->
<div id="tmpbread" style="display: none;">{$breadhtml}</div>
<script type="text/javascript">
	setBread($('#tmpbread').html());
</script>
<!--/面包屑导航封装-->